<?php

namespace app\api\validate;

use think\Validate;

class Faceprint extends Validate
{
    protected $rule = [
        'operator_id' => 'require',
        'notify_url' => 'url|max:255',
        // 'id_name' => 'require|max:30',
        // 'id_no' => 'require|max:30',
        // 'certificate_type' => 'require|in:0,1,2,3',
    ];

    protected $message = [
        'operator_id.require' => '运营商 id 不能为空',
        'notify_url.url' => '回调地址格式有误',
        'notify_url.max' => '回调地址不能超过 255 个字符',
        // 'id_name.require' => '姓名不能为空',
        // 'id_name.max' => '姓名不能超过 30 个字符',
        // 'id_no.require' => '证件号不能为空',
        // 'id_no.max' => '证件号不能超过 30 个字符',
        // 'certificate_type.require' => '证件类型不能为空',
        // 'certificate_type.in' => '证件类型有误',
    ];
}